<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage<FiltronASP.ViewModels.CMS.CMSViewModel>" %>
<%@ Import Namespace="FiltronASP.Helpers.HtmlTags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>
        <asp:ContentPlaceHolder ID="TitleContent" runat="server">
            <%= TitleContent.GenerateTitleContent(Model.PageToGenerate) %>
        </asp:ContentPlaceHolder>
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link href="../../../Content/css/style.css" rel="stylesheet" type="text/css" />
    <link href="../../../Content/css/lightbox.css" rel="stylesheet" type="text/css" />
    <link href="../../../Content/css/jquery.mCustomScrollbar.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="../../../Content/js/translation.js?v=1"></script>
	<script type="text/javascript" src="../../../Content/js/ajax/common-ajax-ops.js?v=1"></script>
    <script type="text/javascript" src="../../../Content/js/cufon-yui.js?v=1"></script>
    <script type="text/javascript" src="../../../Content/js/font_gothicBook.js?v=1"></script>
    <script type="text/javascript" src="../../../Content/js/font_gothicDemi.js?v=1"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js?v=1"></script>
	<script type="text/javascript" src="../../../Content/js/b2slider.js?v=1"></script>
    <script src="../../../Content/js/ajax/replacementFNHandler.js?v=1" type="text/javascript"></script>
    <script src="../../../Content/js/ajax/replacementFNMultisearchHandler.js?v=1" type="text/javascript"></script>
    <script src="../../../Content/js/ajax/replacementFInfoHandler.js?v=1" type="text/javascript"></script>
    <script src="../../../Content/js/ajax/replacementFDescriptionHandler.js?v=1" type="text/javascript"></script>
    <script src="../../../Content/js/ajax/jquery.autocomplete.js?v=1" type="text/javascript"></script>
    <script src="../../../Content/js/search/Filtron_crosslist.js?v=1" type="text/javascript"></script>
	<script src="../../../Content/js/temporary.js?v=1" type="text/javascript"></script>
    <script src="../../../Content/js/prototype.js?v=1" type="text/javascript"></script>
    <script src="../../../Content/js/scriptaculous.js?v=1" type="text/javascript"></script>
    <script src="../../../Content/js/lightbox.js?v=1" type="text/javascript"></script>
    <script src="../../../Content/js/ajax/filtron/filtersSingle-ajax-ops.js?v=1" type="text/javascript"></script>
    <script src="../../../Content/js/jquery.mCustomScrollbar.concat.min.js?v=1" type="text/javascript"></script>
    <script type="text/javascript">
        jQuery(document).ready(function() {
            jQuery("#query").keypress(function(e) {
                if (e.keyCode == 13) {
                    jQuery("#query").parent().children('span').click();
                }
            });
        });
    </script>
</head>
<body>
    <div id="wrapper">
        <div id="header">
            <asp:ContentPlaceHolder ID="languageChangerModule" runat="server">
                <%= languageChangerModule.GenerateCmsContent(Model.PageToGenerate) %>
            </asp:ContentPlaceHolder>
            <img class="banner" src="../../../Content/images/banner.png" alt="Filtron - wix" />
        </div>
        <div id="content">
            <div id="menu">
                <asp:ContentPlaceHolder ID="mainMenuModule" runat="server">
                    <%= mainMenuModule.GenerateCmsContent(Model.PageToGenerate)%>                
                </asp:ContentPlaceHolder> 
            </div>
            <div id="contentHolder">
                <asp:ContentPlaceHolder ID="replacementsCarsSearchModuleFiltron" runat="server">
                    <%= replacementsCarsSearchModuleFiltron.GenerateCmsContent(Model.PageToGenerate)%>
                </asp:ContentPlaceHolder>
            </div> <!-- #contentHolder -->
            <div id="lastSearches">
                <asp:ContentPlaceHolder ID="lastSearchesModule" runat="server">
                    <%= lastSearchesModule.GenerateCmsContent(Model.PageToGenerate)%>
                </asp:ContentPlaceHolder>
            </div>
        </div>
        <div id="footer">
            <span class="footerCopyrights">&copy; 2011 </span>
            <div class="footerMenu">
                <asp:ContentPlaceHolder ID="bottomMenuModule" runat="server">
                    <%= bottomMenuModule.GenerateCmsContent(Model.PageToGenerate)%>                
                </asp:ContentPlaceHolder>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        Cufon.replace('.contentLeftBoxTitle, .contentRightBoxTitle, .contentRightTitle, .selectCarTypeMenu, .booked', { fontFamily: 'franclinBook' });
        Cufon.replace('.contentLeftBoxTitleBolded', { fontFamily: 'franclinDemi' });

        // autofill
        var options, a;
        jQuery(function() {
        options = { serviceUrl: '/Ajax/AutoFillReplacementsRep', minChars: 4 };
            a = jQuery('#query').autocomplete(options);
        });
        
	</script>
    <script type="text/javascript">
        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', 'UA-49206783-1']);
        _gaq.push(['_trackPageview']);
        (function() {
            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();
    </script>
</body>

</html>
